package test.design_pattern.strategy;

import org.springframework.stereotype.Component;

@Component
public class VipUserStrategy implements UserStrategy {

    @Override
    public String getUserType() {
        return "vip";
    }

    @Override
    public double compute(double fee) {
        return fee * 0.8 ;
    }
}
